package com.zyj.springboothapim.service.impl;

import com.zyj.springboothapim.bean.Complain;
import com.zyj.springboothapim.mapper.ComplainMapper;
import com.zyj.springboothapim.service.ComplainService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ComplainServiceImpl implements ComplainService
{

//    @Select("select * from complain_table}")
    private ComplainMapper complainMapper;

    @Autowired
    public void setComplainMapper(ComplainMapper complainMapper){this.complainMapper = complainMapper;}
    @Override
    public List<Complain> selectComplaint()
    {
        return complainMapper.selectComplaint();
    }


    @Override
    public List<Complain> getComplaintById(Complain complain)
    {
        return  complainMapper.getComplaintById(complain);
    }
}
